﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VehicleConfigurator.Model
{
    public class ModelEdition
    {
        public int OID { get; set; }
        public int ModelOID { get; set; }
        public string Name { get; set; }

        public Model Model { get; set; }

        public Make Make
        {
            get
            {
                if (this.Model != null)
                {
                    return Model.Make;
                }
                else
                {
                    return null;
                }
            }
        }
    }
}
